import Vue from 'vue'
import App from './App'
import store from './store'
import request from '@/common/js/request.js'
import common from '@/common/js/common.js'
Vue.prototype.$store = store
Vue.prototype.$common = common
Vue.prototype.$request = request
// 需要登录才能跳转
Vue.prototype.$navigator = function(url){
	if(uni.getStorageSync('token')){
		uni.navigateTo({
			url: url
		})
	}else{
		uni.navigateTo({
			url:'/pages/login'
		})
	}
}
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
